<!DOCTYPE HTML>
<meta http-equiv="content-type" content="text/html"  charset="utf-8"/>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="abcde" />
    
    <?php $this->load->helper('html');
            $this->load->helper('url');
            echo link_tag('css/home.css', 'stylesheet', 'text/css');
     ?>   
     
        <link href="<?php echo base_url(); ?>public/css/style.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/lms-application_bk.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>css/header_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/footer_bk.css" rel="stylesheet" type="text/css"/>
        <link href="<?php //echo base_url();?>css/homepage_bk.css" rel="stylesheet" type="text/css"/>
        <link href="<?php //echo base_url();?>css/layout_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php //echo base_url();?>css/lms-course_bk.css" rel="stylesheet" type="text/css"/>
 	      <!-- JS -->	
		<script type="text/javascript" src="<?php //echo base_url();?>js/lms-main_vendor.js" charset="utf-8"></script>
            
    <!-- Load phan title-->
        <?php $this->load->view('commons/title_head');?>
    <!--Het phan title-->
</head>

<body> 

<!--THANH TIEU DE-->
<?php $this->load->view('commons/header_all');?>

<div id="wrapper">
        <div id="user_wrapper">
            <?php $this->load->view('user_view/current_user/user_left_inf'); ?>
            
        </div>
            <div id="user_right">
                <!--Cac khoa hoc da tham gia-->
                <div id="user_right_title">KHÓA HỌC ĐÃ ĐĂNG KÝ</div>
                <?php $i = 0;
                      while ($i < $user['reg_course_quan']) {?>
                <div id="user_right_content">
                    <div class="user_course_img"><img src="<?php echo base_url();?>images/course_imgs/<?php echo $courses['reg'][$i]['course_img_path'].".jpg";?>" width="270" height="180" alt="Harvard University" title="Harvard University" /></div>                    
                        <div class="user_course_content">
                            <div class="user_course_name">
                                <h3><?php echo $courses['reg'][$i]['course_code'].":".$courses['course_name'][$courses['reg'][$i]['course_id']];?></h3>
                            </div>
                            <div class="user_course_open_day_lecturer">
                                Khai giảng: <?php echo $courses['reg'][$i]['course_open_day'];?> - Giáo viên: <?php echo $courses['reg'][$i]['course_main_lecturer'];?>
                            </div>
                            <div class="user_course_introduc_nmh">
                                    <?php echo $courses['reg'][$i]['course_txt_introduce'];?>
                            </div>
                                                      
                            <form name = "frm_view_course" action = "<?php echo base_url();?>course_controller/show_fedx_course_overview/<?php echo $courses['reg'][$i]['course_id'];?>"> 
                                <input type="submit" class="button_user_course" value="Xem chi tiết "/>
                            </form>
                            <!--<form name = "frm_destroy_course" action = "<?php //echo base_url();?>user_controller/destroy_course/<?php //echo $courses['reg'][$i]['course_id'];?>"> 
                                <input type="submit" class="button_user_course" value="Hủy đăng ký"/>
                            </form>-->
                        </div>
                        
                </div>
                <?php     $i++; 
                      }?>
                <!--Cac khoa hoc chua tham gia-->
    
                <div id="user_right_title">KHÓA HỌC KHÁC</div>
                <?php $i = 0;
                      while ($i < $user['unreg_course_quan']) {?>
                <div id="user_right_content">
                    <div class="user_course_img"><img src="<?php echo base_url();?>images/course_imgs/<?php echo $courses['unreg'][$i]['course_img_path'].".jpg";?>" width="270" height="180" alt="Harvard University" title="Harvard University" /></div>                    
                        <div class="user_course_content">
                            <div class="user_course_name">
                                <h3><?php echo $courses['unreg'][$i]['course_code'].":".$courses['course_name'][$courses['unreg'][$i]['course_id']];?></h3>
                            </div>
                            <div class="user_course_open_day_lecturer">
                                Khai giảng: <?php echo $courses['unreg'][$i]['course_open_day'];?> - Giáo viên: <?php echo $courses['unreg'][$i]['course_main_lecturer'];?>
                            </div>
                            <div class="user_course_introduc_nmh">
                                    <?php echo $courses['unreg'][$i]['course_txt_introduce'];?>
                            </div>
                           
                            <form name = "frm_overview_course" action = "<?php echo base_url();?>course_controller/course_overview_unsign/<?php echo $courses['unreg'][$i]['course_id'];?>"> 
                                <input type="submit" class="button_user_course" value="Xem giới thiệu"/>
                            </form>
                            <form name = "frm_signup_course" action = "<?php echo base_url();?>user_controller/signup_course/<?php echo $courses['unreg'][$i]['course_id'];?>"> 
                                <input type="submit" class="button_user_course" value="Đăng ký"/>
                            </form>
                            <!--<form name = "frm_destroy_course" action = "<?php //echo base_url();?>user_controller/destroy_course/<?php //echo $courses['reg'][$i]['course_id'];?>"> 
                                <input type="submit" class="button_user_course" value="Hủy đăng ký"/>
                            </form>-->
                        </div>
                        
                </div>
                <?php     $i++; 
                      }?>
            </div>
</div>
</div>
<!--PHAN FOOTER CUA TRANG WEB-->
<?php $this->load->view('commons/footer_all'); ?>
   
</body>
</html>

    